* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: #f0f4f8;
    min-height: 100vh;
    color: #2c3e50;
}

/* 登录容器 */
.auth-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-20px);
    opacity: 0;
    animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
    to { transform: translateY(0); opacity: 1; }
}

/* 主标题 */
h2, h3 {
    color: #2c3e50;
    font-weight: 600;
}

h2 { 
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

/* 表单元素 */
select, input {
    width: 100%;
    padding: 1rem;
    margin: 0.8rem 0;
    border: 2px solid #e0e6ed;
    border-radius: 0.8rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

select:focus, input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
    outline: none;
}

/* 密码输入框 */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s;
}

.password-toggle:hover {
    color: #3498db;
}

/* 按钮样式 */
button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    margin: 1rem 0;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}



/* 主仪表盘 */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 功能卡片 */
.card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    float: left;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12), 0 10px 10px rgba(0,0,0,0.08);
}

/* 视频播放器 */
.video-player {
    width: 100%;
    height: 300px;
    border-radius: 0.8rem;
    background: #1a1a1a;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #7f8c8d;
    font-size: 1.2rem;
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
}

/* 数据表格 */
.data-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 0.8rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.data-table th {
    background: #f8f9fa;
    color: #495057;
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
}

.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #f8f9fa;
}

/* 上传区域 */
.upload-wrapper {
    border: 2px dashed #e9ecef;
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
}

.upload-wrapper:hover {
    border-color: #4dabf7;
    background: #f0f7ff;
}

.upload-label {
    cursor: pointer;
    display: block;
    color: #495057;
    font-weight: 500;
}

.upload-label i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4dabf7;
}

/* 进度条 */
progress {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    margin-top: 1.5rem;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background: #f1f3f5;
    border-radius: 5px;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, #4dabf7, #1864ab);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* 错误提示 */
.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
    text-align: center;
    font-weight: 500;
    background: rgba(255, 107, 107, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.error-message.show {
    transform: translateY(0);
    opacity: 1;
}

/* 加载状态 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    z-index: 10;
}

.fa-spinner {
    animation: spin 1s linear infinite;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    color: #4dabf7;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .auth-container {
        margin: 1.5rem auto;
        padding: 1.25rem;
    }
    
    .card {
        padding: 1.25rem;
    }
}

/* 头部样式 */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: left;
    padding: 1.25rem 2rem;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

#huanyin{
    text-align: left;
    margin-bottom: 0%;
    font-size: 23px;
    /* float: left; */
    /* display: flex; */
}

.logout-btn {
    width: auto;
    padding: 0.6rem 1.25rem;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: right;
    /* float:right;  */
}

.logout-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

/* 通用改进 */
body {
    background: #f8f9fa;
    color: #495057;
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #495057;
}

/* 按钮样式改进 */
.btn {
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: #4dabf7;
    color: white;
}

.btn-primary:hover {
    background: #339af0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(77, 171, 247, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #4dabf7;
    color: #4dabf7;
}

.btn-outline:hover {
    background: rgba(77, 171, 247, 0.1);
}


.about-link{
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 24px;
}

.about-link:hover {
    color: #919598;
    text-decoration: underline;
}

.auth-message span {
  color: #3498db;
  cursor: pointer;
  transition: color 0.2s, text-decoration 0.2s;
}

.auth-message span:hover {
  color: #217dbb;
  text-decoration: underline;
}